//封装早中晚判断函数
export const getTimeMsg = () => {
  let hours = new Date().getHours();
  let message = "";
  if (hours <= 9) {
    message = "早晨";
  } else if (hours <= 14) {
    message = "上午";
  } else if (hours <= 18) {
    message = "下午";
  } else {
    message = "晚上";
  }
  return message;
};
